#define _CRT_SECURE_NO_WARNINGS 1

int accountBalanceAfterPurchase(int purchaseAmount) {
    return 100 - ((purchaseAmount / 10) * 10 + ((purchaseAmount % 10) >= 5 ? 10 : 0));
}